//
//  ZDAccountSecureController.m
//  特种车调度
//
//  Created by 陈宇 on 15/8/18.
//
//

#import "ZDAccountSecureController.h"
#import "ZDModifyPasswordController.h"

@interface ZDAccountSecureController ()

@end

@implementation ZDAccountSecureController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"账户安全";
    self.view.backgroundColor = BMColor(245, 245, 247, 1);
    self.tableView.tableFooterView = [[UIView alloc] init];
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseIdentifier];
    if (!cell) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier];
        cell.textLabel.font = [UIFont systemFontOfSize:13.f];
        cell.textLabel.textColor = BMColor(102, 102, 102, 1);
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
    cell.textLabel.text = @"修改登录密码";
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    ZDModifyPasswordController *modifyVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"modifyPasswordVC"];
    [self showViewController:modifyVC sender:nil];
}

@end
